/*
 * @Author: wuhao930406 1148547900@qq.com
 * @Date: 2023-07-27 13:45:19
 * @LastEditors: wuhao930406 1148547900@qq.com
 * @LastEditTime: 2023-07-27 14:00:13
 * @FilePath: /legion-iot/src/pages/system/street/columns.js
 * @Description: 
 * 
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. 
 */
import { Image, Switch } from "antd";
import { EyeFilled } from "@ant-design/icons";

function getcolumns(enable) {
  return {
    columns: [
      {
        title: "省",
        dataIndex: "province_id",
        key: "province_id",
        valueType: "select",
        options: { path: "/province", params: {} },
        formItemProps: { rules: [{ required: true, message: "此项为必填项" }] },
        search:false
      },
      {
        title: "市",
        dataIndex: "city_id",
        key: "city_id",
        valueType: "select",
        options: { path: "/city", linkParams: { province_id: null } },
        formItemProps: { rules: [{ required: true, message: "此项为必填项" }] },
        search:false

      },
      {
        title: "区",
        dataIndex: "district_id",
        key: "district_id",
        valueType: "select",
        options: { path: "/district", linkParams: { city_id: null } },
        formItemProps: { rules: [{ required: true, message: "此项为必填项" }] },
        search:false

      },
      {
        title: "街道",
        dataIndex: "name",
        key: "name",
        formItemProps: { rules: [{ required: true, message: "此项为必填项" }] },
        
      },
    ],
    pathconfig: {
      enableadd: true,
      enableedit: true,
      enabledelete: true,
      enabledetail: false,
      add: "/street",
      edit: "/street",
      list: "/street",
      delete: "/street",
      detail: "",
    },
  };
}
export default getcolumns;
